package edu.zut.cs.software.module.commodity.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.cs.software.module.commodity.dao.CommodityDao;
import edu.zut.cs.software.module.commodity.domain.Commodity;
import edu.zut.cs.software.module.commodity.service.CommodityManager;
import edu.zut.cs.software.teach.Base.service.impl.GenericManagerImpl;
/**
 * 
 * @author 高刘成
 *
 */
@Service("CommodityManager")
 public class CommodityManagerimpl extends GenericManagerImpl<Long, Commodity>  implements CommodityManager {
	
	CommodityDao commoditydao;
	@Autowired
	public void setCommoditydao(CommodityDao commoditydao) {
		this.commoditydao = commoditydao;
		this.dao=commoditydao;
	}

	@Override
	public Commodity findById(Long smsId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String CommodityInformation(Commodity commodity) {
		// TODO Auto-generated method stub
		String Info;
		Info="商品名称："+commodity.getName()+" "+"商品数量："+commodity.getInventory()+"";
		return Info;
	}
	@Override
	public Commodity echo(Commodity commodity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void Delete(Commodity commodity) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void Add(Commodity commodity) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void Modify(Commodity commodity) {
		// TODO Auto-generated method stub
		
	}

}


